package com.zhu.service.edu.feign;

import com.zhu.commons.utils.R;

import com.zhu.service.edu.feign.fallback.OssFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



@FeignClient(value = "qiniuyun-oss",fallback = OssFeignFallback.class)
public interface OssFeignService {
    @GetMapping("/admin/oss/file/test")
    R test();

    @DeleteMapping("/admin/oss/file/deleteByUrl/{url}")
    public R deleteFile(@PathVariable(required = true,value = "url") String url);

}
